package routers

import (
	"myproject/controllers"

	"github.com/astaxie/beego"
)

func init() {
  beego.Router("/admin", &controllers.ArticleController{}, "get:ShowAdmin")

  beego.Router("/", &controllers.UserController{}, "get:ShowLogin")
  beego.Router("/login", &controllers.UserController{}, "post:HandleLogin")
	
  beego.Router("/regpage", &controllers.UserController{}, "get:ShowRegister")
  beego.Router("/register", &controllers.UserController{}, "post:HandleRegister")



}
